package com.cskaoyan.bean.admin.statement.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Name : StatementVo.java
 * @Time : 2021/8/13 14:36
 * @Author : creamycandy
 * @Software : IntelliJ IDEA
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StatementVo<T> {
    List<String> columns;
    List<T> rows;

    public static <T> StatementVo create(List<String> columns , List<T> rows) {
        return new StatementVo(columns, rows);
    }
}
